$OpenBSD: patch-src_wmpinboard_c,v 1.2 2016/03/18 18:21:39 jca Exp $
--- src/wmpinboard.c.orig	Thu Apr 13 13:01:17 2000
+++ src/wmpinboard.c	Fri Mar 18 19:01:03 2016
@@ -686,7 +686,7 @@ action(actions type, const void *data)
         if (strlen(data) >= sizeof(opts.font)) {
           /* avoid trouble when retrieving saved data... */
           fprintf(stderr, "Fatal error: Specified font descriptor exceeds "
-            "buffer size of %d bytes.\n", sizeof(opts.font));
+            "buffer size of %lu bytes.\n", (unsigned long)sizeof(opts.font));
           exit(EXIT_FAILURE);
         }
         strcpy(opts.font, data);
@@ -702,7 +702,7 @@ action(actions type, const void *data)
       } else {
         if (strlen(data) >= sizeof(opts.theme)) {
           fprintf(stderr, "Fatal error: Specified theme file location exceeds "
-            "buffer size of %d bytes.\n", sizeof(opts.theme));
+            "buffer size of %lu bytes.\n", (unsigned long)sizeof(opts.theme));
           exit(EXIT_FAILURE);
         }
         strcpy(opts.theme, data);
@@ -721,7 +721,7 @@ action(actions type, const void *data)
       } else {
         if (strlen(data) >= sizeof(opts.alarm_cmd)) {
           fprintf(stderr, "Fatal error: Specified theme file location exceeds "
-            "buffer size of %d bytes.\n", sizeof(opts.alarm_cmd));
+            "buffer size of %lu bytes.\n", (unsigned long)sizeof(opts.alarm_cmd));
           exit(EXIT_FAILURE);
         }
         strcpy(opts.alarm_cmd, data);
@@ -1142,7 +1142,8 @@ void
 timer(unsigned int intv)
 {
 #ifndef __GLIBC__
-  struct itimerval val = { { 0, intv }, { 0, intv } };
+  struct itimerval val = { { 0, 0 }, { 0, 0 } };
+  val.it_interval.tv_usec = val.it_value.tv_usec = intv;
 
   setitimer(ITIMER_REAL, &val, 0);
 #else
